<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Index</title>
</head>
<body>

<!-- view层 ${} -->
<div id="app">

    输入的文本：<input type="text" v-model="message"/>{{message}}

    <br>------------------------------<br>

    性别：
    <input type="radio" name="sex" value="male" v-model="sex">male
    <input type="radio" name="sex" value="female" v-model="sex">female

    <p>
        select：{{sex}}
    </p>

    <br>------------------------------<br>

    下拉框
    <select name="" id="" v-model="selected">
        <option value="" disabled>---请选择---</option>
        <option>A</option>
        <option>B</option>
        <option>C</option>
    </select>

    <p>
        value: {{selected}}
    </p>
</div>

<!-- 导入Vue.js -->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
    var vm = new Vue({
        el: "#app",
        data: {
            message: "123",
            sex: "",
            selected: ""
        },
        methods: {

        }
    });
</script>
</body>
</html>